<?php

class myUser extends sfBasicSecurityUser
{
    public function autentica()
    {
        $this->setAuthenticated(true);
    }
    public function logout($url=null)
    {
        $this->setAuthenticated(false);
        $this->shutdown();
        $this->getAttributeHolder()->removeNamespace('symfony/user/sfUser/attributes');
        if(!is_null($url))
            sfContext::getInstance()->getController()->redirect($url);
    }    
}
